//part1:C02:ep2.2.4:ep2.2.4.cpp
#include <iostream>
int main(void)
{
    int sum = 0;
    for(int val = 1; val <= 10; val++)
    {
        sum += val;
    }
    std::cout << "Sum of 1 to 10 inclusive is "
        << sum << std::endl;
        
    return 0;
}